//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_getranjumppoint.sqf"
#include "x_setup.sqf"

private ["_center", "_radius", "_angle", "_r", "_x1", "_y1"];
PARAMS_2(_center,_radius);
_center_x = _center select 0;_center_y = _center select 1;
_angle = floor (random 360);
_r = random _radius;
if (_r < 50) then {_r = 50};
_x1 = _center_x - ((random _r) * sin _angle);
_r = random _radius;
if (_r < 50) then {_r = 50};
_y1 = _center_y - ((random _r) * cos _angle);
[_x1, _y1, 0]